package logic

import (
	"context"
	keep "keep/common/proto"
	"keep/rpc/sever"
)

type ServiceKeep struct {
	keep.UnimplementedKeepServer
}

func (s ServiceKeep) KeepReservationInfo(ctx context.Context, in *keep.KeepReservationInfoReq) (*keep.KeepReservationInfoResp, error) {
	info, err := sever.KeepReservationInfo(in)
	if err != nil {
		return nil, err
	}
	return info, nil
}
func (s ServiceKeep) KeepReservation(ctx context.Context, in *keep.KeepReservationReq) (*keep.KeepReservationResp, error) {
	info, err := sever.KeepReservation(in)
	if err != nil {
		return nil, err
	}
	return info, nil
}
func (s ServiceKeep) ReservationConfirm(ctx context.Context, in *keep.ReservationConfirmReq) (*keep.ReservationConfirmResp, error) {
	info, err := sever.ReservationConfirm(in)
	if err != nil {
		return nil, err
	}
	return info, nil
}
func (s ServiceKeep) MyReservation(ctx context.Context, in *keep.MyReservationInfoReq) (*keep.MyReservationInfoResp, error) {
	info, err := sever.MyReservation(in)
	if err != nil {
		return nil, err
	}
	return info, nil
}
func (s ServiceKeep) RemindUser(ctx context.Context, in *keep.RemindUserReq) (*keep.RemindUserResp, error) {
	info, err := sever.RemindUser(in)
	if err != nil {
		return nil, err
	}
	return info, nil
}
func (s ServiceKeep) DelReservation(ctx context.Context, in *keep.DelReservationReq) (*keep.DelReservationResp, error) {
	info, err := sever.DelReservation(in)
	if err != nil {
		return nil, err
	}
	return info, nil
}
